using Masi.Models;

namespace Masi.Migrations
{
  using System.Data.Entity.Migrations;

  internal sealed class Configuration : DbMigrationsConfiguration<UsersContext>
    {
        public Configuration()
        {
            AutomaticMigrationsEnabled = true;
        }

        protected override void Seed(UsersContext context)
        {
          context.UserProfiles.AddOrUpdate(
            p=>p.UserName,
                  new UserProfile { UserName = "Andrew Peters" },
                  new UserProfile { UserName = "Brice Lambson" },
                  new UserProfile { UserName = "Rowan Miller" }
            );
        }
    }
}
